package win.larryzeal.spring.rmi.client.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import win.larryzeal.spring.rmi.common.service.HelloRMIService;

import javax.annotation.PostConstruct;

/**
 * Created by 张少昆 on 2017/8/23.
 */
@Service
public class HiService {
    @Autowired
    // @Qualifier( "helloProxy")
    private HelloRMIService helloRMIService;

    @PostConstruct
    public void r(){
        System.out.println("helloRMIService.add(3, 5)=" + helloRMIService.add(3, 5));
    }
}
